Method: Warning.[]
- Defined in:
- error.c
permalink .[](category) ⇒ Boolean
Returns the flag to show the warning messages for category
. Supported categories are:
:deprecated
-
deprecation warnings
-
assignment of non-nil value to
$,
and$;
-
keyword arguments
-
proc/lambda without block
etc.
:experimental
-
experimental features
-
Pattern matching
204 205 206 207 208 209 210 211 |
# File 'error.c', line 204
static VALUE
rb_warning_s_aref(VALUE mod, VALUE category)
{
rb_warning_category_t cat = rb_warning_category_from_name(category);
if (rb_warning_category_enabled_p(cat))
return Qtrue;
return Qfalse;
}
|